<?php
namespace Home\Controller;

class KnowController extends CommonController{
    
    public function lists(){
        $p = I('request.p') ? I('request.p') : 1;
        $list = M('Know')->order('id desc')->page($p.',10')->select();
        
        if($p == 1){
            $this->assign('list',$list);
            $this->display();
        }else{
            empty($list) ? $this->ajaxReturn('err') : $this->ajaxReturn($list);
        }
    }
    
}